! Set _SCALE on main view or _ZOOM on zoom pane
newline
cell label,local(@tag)&":"
set tabwidth -1 alignment right offset -2

! popup menu
cell PopupMenuEdit
MenuItems "25%:.25"
MenuItems "50%:.5"
MenuItems "75%:.75"
MenuItems "100%::"
MenuItems "125%:1.25"
MenuItems "150%:1.5"
MenuItems "200%:2"
MenuItems "300%:3.0"
MenuItems "400%:4.0"
if @tag="_SCALE"
  MenuItems local("fit")&":0"
endif
#maxText=""
ifdef #maxScale
  if #maxScale<4
    #maxText=" (<"&int(100*#maxScale)&"%)"
  endif
endif
help local("Click to set image scaling")&#maxText
set Autoreload YES
SizeToFit

cell static,#maxText
sizetofit
